require(['../config/requireconfig'],function(config){
	//根据需要添加
	require(['zepto','common/mcommon','common/prodGen'],function($,com,prodGen){
        com.init();
		var pageLogic = new PageLogic($,com,prodGen);
		pageLogic.init();

	});
});
var PageLogic = function($,com,prodGen){
	
	return{
		init:function(){
			var _this = this;
			_this.initData();
		},
		params:function(){
			var vehicleNo = com.utils().urlParam("vehicleNo");
			return {
				vehicleNo:vehicleNo
			};
		},
		initData:function(){
			var _this =this;
			com.ajax({
				url:"/getByVehicleNo.json",
				data:_this.params(),
				success:function(res){
					_this.data = res.data;
					prodGen.genPartInfo(res.data.resList,$.proxy(_this.afterSelectPart,_this),true);
				}
			});
		},
		initNav:function(sublineName){
			$("#sublinename").text(sublineName);
		},
		afterSelectPart:function(partNo){
			var _this =this;
			_this.data.selectVehicleNoByPart = _this.data.selectVehicleNoByPart1;
			prodGen.genPrdInfo($(".prd-info"),_this.data);
		}
	}
}